﻿#ifndef PLANDLG_H
#define PLANDLG_H

#include <Message/message.h>
#include <QDialog>
#include <SqliteUtil/sqliteutil.h>
#include <QMouseEvent>

namespace Ui {
class PlanDlg;
}

class PlanDlg : public QDialog
{
    Q_OBJECT

public:
    explicit PlanDlg(QWidget *parent = nullptr);
    ~PlanDlg();
    void iniPage(int nIndex);
    void showTabel(int id);
    void upPageData(int id);
    void InitComBox();


signals:
    void sigFormInfo();
private slots:
    void on_Bt_Save_clicked();

    void on_Bt_Print_clicked();

    void on_comBox_defect_currentIndexChanged(int index);

    void on_Bt_Quite_clicked();

    void on_Bt_Updata_clicked();

private:
    Ui::PlanDlg *ui;


	int m_nColumn = 0;
	int m_nState = 0;
	int m_nPlanID = 0;

    QString m_planName;
    QString m_CreatTime;
    QString m_ChangTime;

    Message* m_pMsg;

    QPoint z;



    QString m_strNotItem;
    SqliteUtil m_sql;
    bool isInitializationComplete = false;
};

#endif // PLANDLG_H
